import { getClassifyList } from "@/Api/classify";
const state = {
  classifyList: [],
};
const mutations = {
  SET_CLASSIFY(state, list) {
    state.classifyList = list;
  },
};
const actions = {
    //获取分类列表
  async getClassifyList({ commit }) {
    let result = await getClassifyList();
    if (result.data.status == 200) commit("SET_CLASSIFY", result.data.data);
  },
};
const getters = {

};
export default {
  state,
  mutations,
  actions,
  getters,
};
